﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Coroutine
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.InteropServices;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>MonoBehaviour.StartCoroutine returns a Coroutine. Instances of this class are only used to reference these coroutines, and do not hold any exposed properties or functions.</para>
  /// </summary>
  [StructLayout(LayoutKind.Sequential)]
  public sealed class Coroutine : YieldInstruction
  {
    internal IntPtr m_Ptr;

    private Coroutine()
    {
    }

    ~Coroutine() => Coroutine.ReleaseCoroutine(this.m_Ptr);

    private static void ReleaseCoroutine(IntPtr ptr)
    {
      throw new NullReferenceException();
    }
  }
}
